package org.breathe.dynamic.thread.pool.core.notify;

import org.breathe.thread.pool.common.entity.BreatheDtpMainProperties;
import org.breathe.thread.pool.common.enums.NotifyTypeEnum;

import java.util.List;

/**
 * 通知发送平台
 * @author: breathe
 * @createTime: 2025-04-10
 */
public interface Notifier {
    /**
     * 获得发送的平台名称
     * @return platform
     */
    String platform();

    /**
     * 发送改变的信息
     */
    void sendChangeMsg(BreatheDtpMainProperties oldProperties, List<String> differences);

    /**
     * 发送报警消息
     */
    void sendAlarmMsg(NotifyTypeEnum typeEnum);
}
